{extend name="base" /} {block name="body"}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">邮件配置</li>
    </ul>
</div>

<form class="layui-form form-container" data-url="{:url('admin/service/updatemail')}" localtion-url="{:url('service/mail')}">

    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="layui-form-item">
                <label class="layui-form-label">SMTP 服务器</label>
                <div class="layui-input-inline">
                    <input type="text" name="mail[smtp_server]" value="{$mail.smtp_server|default=''}" placeholder="SMTP 服务器" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">SMTP服务器的端口号</label>
                <div class="layui-input-inline">
                    <input type="number" name="mail[smtp_port]" value="{$mail.smtp_port|default=''}" placeholder="SMTP服务器的端口号" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">SMTP服务器用户名</label>
                <div class="layui-input-inline">
                    <input type="text" name="mail[smtp_user]" value="{$mail.smtp_user|default=''}" placeholder="SMTP服务器用户名" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">SMTP服务器密码</label>
                <div class="layui-input-inline">
                    <input type="password" name="mail[smtp_pass]" value="{$mail.smtp_pass|default=''}" placeholder="SMTP服务器密码" autocomplete="off" class="layui-input">
                </div>
            </div>

        </div>
    </div>
    <div class="formbtngroup">
        <a target="_blank" href="https://www.laysns.com/thread/2725.html">配置文档 <i class="layui-icon layui-icon-tips"></i></a>
        <button  class="layui-btn layui-btn-sm" lay-submit="" type="submit" lay-filter="formadd">保存</button>
    </div>
</form>

{/block} {block name="js"}
<script type="text/javascript" src="__ADMIN__/js/formadd.js"></script>
{/block}